#计算长方形边长和面积 有参无返
#{0}，{1}占位符分别对应后面的参数
def calculate1(height,weight):
    print("""边长:{0}
面积:{1}""".format(height*2+weight*2,height*weight))
#有参有返
def calculate2(height,weight):
    return height*weight
print("calculate1:")
calculate1(10,20)
print("calculate2:\n"+str(calculate2(5,6)))